<?php

    foreach ($_POST['id'] as $v) {

        $id = $v;
        $_rows = getDel($id);

    }

    //$id = $_GET['id'];
    //echo $id;die;


    if (!empty($_SERVER['HTTP_X_REQUESTED_WITH'])) {
        echo $_rows;die;
    }


    if ($_rows > 0) {
        echo '<script type="text/javascript">alert("删除成功！");self.location.href="index.php?c=news&a=list&admin=1";</script>';die;
    }else{
        echo '<script type="text/javascript">alert("删除失败！");history.go(-1);</script>';die;
    }
?>
